using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MvcExtExample.Views.Shared
{
    public partial class Site1 : System.Web.UI.MasterPage
    {
        public static string dt;
        protected void Page_Load(object sender, EventArgs e)
        {
            date.Text = DateTime.Now.ToString("yyyy年MM月dd日");
            lnkbtnDailyReport.Attributes.Add("onmouseover ", "this.style.color='#ff0000'");
            lnkbtnDailyReport.Attributes.Add("onmouseout", "this.style.color='#ffffff'");
            lnkbtnMonthReport.Attributes.Add("onmouseover ", "this.style.color='#ff0000'");
            lnkbtnMonthReport.Attributes.Add("onmouseout", "this.style.color='#ffffff'");
            lnkbtnOilFieldMonthCurve.Attributes.Add("onmouseover ", "this.style.color='#ff0000'");
            lnkbtnOilFieldMonthCurve.Attributes.Add("onmouseout", "this.style.color='#ffffff'");
            lnkbtnSingleWellMonthCurve.Attributes.Add("onmouseover ", "this.style.color='#ff0000'");
            lnkbtnSingleWellMonthCurve.Attributes.Add("onmouseout", "this.style.color='#ffffff'");
            lnkbtnSafetySetup.Attributes.Add("onmouseover ", "this.style.color='#ff0000'");
            lnkbtnSafetySetup.Attributes.Add("onmouseout", "this.style.color='#ffffff'");
        }

        protected bool User_LogIn()
        {
            string userName = Request.Form["log"];
            string userPwd = Request.Form["pwd"];
            if (userName=="胡孝林")
            {
                Session["userName"] = userName;
                Session["userPwd"] = userPwd;
                return true;
            }
            return false;
        }
    }
}